﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cofe.Core.Logger
{
    public class ErrorEventSource : EventSource<ErrorEventArgs>, IErrorEventSource
    {
        public static ErrorEventSource Instance = new ErrorEventSource();

        public void NotifyError(Exception exception)
        {
            dispatchEvent(new ErrorEventArgs(exception));
        }
    }
}
